package com.hhss.eurekafeignclient.service;

import com.hhss.eurekafeignclient.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: zcc
 * @Date: 19-9-30 11:26
 * @Description:
 */
@FeignClient(value = "eureka-client", configuration = FeignConfig.class, fallback = HelloHystrix.class)
public interface EurekaFeignClient {

    @RequestMapping("hello")
    String sayHello(@RequestParam(defaultValue = "zcc") String name);
}
